package com.pafacebank.redis;

import java.util.Date;

public class TimeLag {
	
	private Date startTime;
	private Date endTime;
	
	public TimeLag(){
		Date currentTime = new Date();
		this.startTime = currentTime;
	}
	
	public void close(){
		Date currentTime = new Date();
		this.endTime = currentTime;
		long c = this.endTime.getTime() - this.startTime.getTime();
		System.out.println("交易耗时："+ c);
	}
	
}
